package com.test.model;

import java.io.Serializable;

/**
 * Created by lms on 2017/10/25.
 */
public class User implements Serializable {
    private int id;

    private String u_name;

    private String mobile;
    public User() {
        u_name = null;
        id = 0;
        mobile = null;
    }

    public User(Integer id, String u_name, String mobile) {
        this.id = id;
        this.u_name = u_name;
        this.mobile = mobile;
    }

    public static class Build {
        private Integer id;

        private String u_name;

        private String mobile;

        public Build id(Integer bId) {
            id = bId;
            return this;
        }

        public Build u_name(String bUname) {
            u_name = bUname;
            return this;
        }

        public Build mobile(String bMobile) {
            mobile = bMobile;
            return this;
        }

        public User build() {
            return new User(this);
        }
    }

    private User(Build build) {
        id = build.id;
        u_name = build.u_name;
        mobile = build.mobile;

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getU_name() {
        return u_name;
    }

    public void setU_name(String u_name) {
        this.u_name = u_name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
